package ProtocolInfoFile;

public class Test {

	
	/**
	 * @param args
	 */
	public static void main(String[] args) {

		if (args.length != 1)
			System.out.println("The program expects a path to xml file.");
		
		/* parsing XML */
		String xmlPath = args[0];
		ProtocolInfoFile p;
		try {
			p = ProtocolInfoFile.parse(xmlPath);
		} catch (Exception e) {
			System.out.println(e.getMessage());
			return;
		}
		
		/* print parameters */
		System.out.println("version: " + p.getVersion());
		System.out.println("sid: " + p.getSid());
		System.out.println("k: " + p.getK());
		System.out.println("lambda: " + p.getLambda());
		System.out.println("ne: " + p.getNe());
		System.out.println("nr: " + p.getNr());
		System.out.println("nv: " + p.getNv());
		System.out.println("sHash: " + p.getSHash());
		System.out.println("sPRG: " + p.getSPRG());
		System.out.println("sGroup: " + p.getSGroup());
		System.out.println("wDefault: " + p.getWDefault());

	}

}
